package org.example.service;

/**
 * ConnectivityResult
 *
 * @author: wangchao
 * @Date: 2025/6/11 09:36
 * @since 7.0.0-RC2
 **/
public class ConnectivityResult {
    private final boolean connected;
    private final int statusCode;
    private final String message;

    public ConnectivityResult(boolean connected, int statusCode, String message) {
        this.connected = connected;
        this.statusCode = statusCode;
        this.message = message;
    }

    public boolean isConnected() {
        return connected;
    }

    public int getStatusCode() {
        return statusCode;
    }

    public String getMessage() {
        return message;
    }

    @Override
    public String toString() {
        return "ConnectivityResult{" + "connected=" + connected + ", statusCode=" + statusCode + ", message='"
            + message + '\'' + '}';
    }
}

